package day06.Lx;

import java.time.LocalDate;
import java.time.Period;

public class Lian09 {
    public static void main(String[] args) {
        LocalDate time1 = LocalDate.of(2020, 1, 1);
        LocalDate time2 = LocalDate.of(2048, 1, 1);
        Period period = Period.between(time1, time2);
        int years = period.getYears();
        int months = period.getMonths();
        int days = period.getDays();
        System.out.println(period.toTotalMonths());
    }
}
